// import { formatTime } from '@/utils'
import i18n from '@/locales/index'
const { t } = i18n.global

export const columns = [
  // { title: '生产日期', dataIndex: 'processDate', key: 'processDate', align: 'center', width: 120 , sorter: true, timeType: 'day',
  //   customRender: ({ text }) => {
  //     return formatTime(text, 'YYYY-MM-DD')
  //   }
  // },
  {
    key: 'other',
    value: 'other',
    title:'other',
    children:[
      { title: '工序号/工序名', dataIndex: 'processName', key: 'processName', align: 'center', width: 120 },
      { title: t('deviceManage.waterLineNo'), dataIndex: 'lineNo', key: 'lineNo', align: 'center', width: 120 },
      { title: t('hangManage.stationNo'), dataIndex: 'stationNo', key: 'stationNo', align: 'center', width: 120 },
      { title: '--', dataIndex: 'hourNumberList', key: 'hourNumberList', align: 'center', width: 120  },
      { title: t('other.otherTime'), dataIndex: 'otherNumber', key: 'otherNumber', align: 'center', width: 120 },
      { title: t('common.totals'), dataIndex: 'totalNumber', key: 'totalNumber', align: 'center', width: 120  , sorter: true},
    ]
  }
]


export const columnsHour = [
  { title: t('other.timeFrame'), dataIndex: 'title', key: 'title', align: 'center', width: 120  },
  { title: t('other.showOrNot'), dataIndex: 'state', key: 'state', align: 'center', width: 120  },
]


export const minArr = [
  {  key:1, label:'10',value:10,checked:false},
  {  key:2, label:'20',value:20,checked:false},
  {  key:3, label:'30',value:30,checked:false},
  {  key:4, label:'40',value:40,checked:false},
  {  key:5, label:'50',value:50,checked:false},
  {  key:6, label:'60',value:60,checked:false},
]

export const hourArr = [
  {  key:0, label:'0:00 - 1:00',value:0,checked:false},
  {  key:1, label:'1:00 - 2:00',value:1,checked:false},
  {  key:2, label:'2:00 - 3:00',value:2,checked:false},
  {  key:3, label:'3:00 - 4:00',value:3,checked:false},
  {  key:4, label:'4:00 - 5:00',value:4,checked:false},
  {  key:5, label:'5:00 - 6:00',value:5,checked:false},
  {  key:6, label:'6:00 - 7:00',value:6,checked:false},
  {  key:7, label:'7:00 - 8:00',value:7,checked:false},
  {  key:8, label:'8:00 - 9:00',value:8,checked:false},
  {  key:9, label:'9:00 - 10:00',value:9,checked:false},
  {  key:10, label:'10:00 - 11:00',value:10,checked:false},
  {  key:11, label:'11:00 - 12:00',value:11,checked:false},
  {  key:12, label:'12:00 - 13:00',value:12,checked:false},
  {  key:13, label:'13:00 - 14:00',value:13,checked:false},
  {  key:14, label:'14:00 - 15:00',value:14,checked:false},
  {  key:15, label:'15:00 - 16:00',value:15,checked:false},
  {  key:16, label:'16:00 - 17:00',value:16,checked:false},
  {  key:17, label:'17:00 - 18:00',value:17,checked:false},
  {  key:18, label:'18:00 - 19:00',value:18,checked:false},
  {  key:19, label:'19:00 - 20:00',value:19,checked:false},
  {  key:20, label:'20:00 - 21:00',value:20,checked:false},
  {  key:21, label:'21:00 - 22:00',value:21,checked:false},
  {  key:22, label:'22:00 - 23:00',value:22,checked:false},
  {  key:23, label:'23:00 - 24:00',value:23,checked:false},
]

